import request from '@/utils/request';

/**
 * 查询区域系统菜单Page
 * @param params
 * @returns {Promise<unknown>}
 */
export async function getPageSysMenu(params) {
    return request('/api/oa/v1/sysmenu/pageMenu/', {
        method: 'POST',
        data: params
    });
}

/**
 * 查询区域系统菜单List
 * @param params
 * @returns {Promise<unknown>}
 */
export async function getListSysMenu(params) {
    return request('/api/oa/v1/sysmenu/listMenu/', {
        method: 'POST',
        data: params
    });
}

/**
 * 新增系统菜单
 * @param params
 * @returns {Promise<unknown>}
 */
export async function addSysMenu(params) {
    return request('/api/oa/v1/sysmenu/addMenu/', {
        method: 'POST',
        data: params
    });
}


/**
 * 新增系统菜单
 * @param params
 * @returns {Promise<unknown>}
 */
export async function updateSysMenu(params) {
    return request('/api/oa/v1/sysmenu/updateMenu/', {
        method: 'POST',
        data: params
    });
}

/**
 * 删除系统菜单
 * @param params
 * @returns {Promise<unknown>}
 */
export async function deleteSysMenu(params) {
    return request('/api/oa/v1/sysmenu/deleteMenu/', {
        method: 'POST',
        data: params
    });
}

/**
 * 详情
 * @param params
 * @returns {Promise<unknown>}
 */
export async function detailMenu(params) {
    return request('/api/oa/v1/sysmenu/detailMenu/', {
        method: 'POST',
        data: params
    });
}
